/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: Universidad de La Frontera
 * License Type: Academic
 */
package orm;

import java.io.Serializable;
/**
 * TIPO DE CONSUMO
 */
public class TipoConsumo implements Serializable {
	public TipoConsumo() {
	}
	
	private java.util.Set this_getSet (int key) {
		if (key == orm.ORMConstants.KEY_TIPOCONSUMO_CONSUMO) {
			return ORM_consumo;
		}
		
		return null;
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}
		
	};
	
	private int tipocon_ID;
	
	private String tipo;
	
	private short monto_fijo;
	
	private short monto_variable;
	
	private java.util.Set ORM_consumo = new java.util.HashSet();
	
	/**
	 * IDENTIFICADOR TIPO DE CONSUMO
	 */
	private void setTipocon_ID(int value) {
		this.tipocon_ID = value;
	}
	
	/**
	 * IDENTIFICADOR TIPO DE CONSUMO
	 */
	public int getTipocon_ID() {
		return tipocon_ID;
	}
	
	public int getORMID() {
		return getTipocon_ID();
	}
	
	/**
	 * TIPO DE SERVICIO
	 */
	public void setTipo(String value) {
		this.tipo = value;
	}
	
	/**
	 * TIPO DE SERVICIO
	 */
	public String getTipo() {
		return tipo;
	}
	
	/**
	 * MONTO FIJO
	 */
	public void setMonto_fijo(short value) {
		this.monto_fijo = value;
	}
	
	/**
	 * MONTO FIJO
	 */
	public short getMonto_fijo() {
		return monto_fijo;
	}
	
	/**
	 * MONTO VARIABLE
	 */
	public void setMonto_variable(short value) {
		this.monto_variable = value;
	}
	
	/**
	 * MONTO VARIABLE
	 */
	public short getMonto_variable() {
		return monto_variable;
	}
	
	private void setORM_Consumo(java.util.Set value) {
		this.ORM_consumo = value;
	}
	
	private java.util.Set getORM_Consumo() {
		return ORM_consumo;
	}
	
	public final orm.ConsumoSetCollection consumo = new orm.ConsumoSetCollection(this, _ormAdapter, orm.ORMConstants.KEY_TIPOCONSUMO_CONSUMO, orm.ORMConstants.KEY_CONSUMO_TIPOCONSUMOTIPOCON, orm.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	public String toString() {
		return String.valueOf(getTipocon_ID());
	}
	
}
